package com.kaifamiao.www.demo.do0801.factory;

public abstract class HumanMethodFactory {
    abstract Man createMan();
    abstract Woman createWoman();

}
class BlackHumanFactory extends HumanMethodFactory{

    @Override
    Man createMan() {
        return new BlackMan();
    }

    @Override
    Woman createWoman() {
        return new BlackWoman();
    }
}
class WhiteHumanFactory extends HumanMethodFactory{

    @Override
    Man createMan() {
        return new WhiteMan();
    }

    @Override
    Woman createWoman() {
        return new WhiteWoman();
    }
}
abstract class ChineseFactory extends HumanMethodFactory{}
